package com.navinfo.platform.wbs.dto.condition;

import com.navinfo.platform.dataanalysis.dto.LocationDataPoint;

public class PumpCondition extends AbstractCondition {
    @Override
    protected boolean subCondition(LocationDataPoint point, Object... externalParam) {
        int acc = point.getAcc();
        int rotation = point.getRotation();
        int accPedalPos = point.getAccPedalPos();
        double speed = point.getSpeed();
        double actualEnginePercentTor = point.getActualEnginePercentTor();
        return !lastPoint && acc > 0 && speed == 0 && accPedalPos > 0 && rotation > Integer.parseInt(param[0]) &&
                actualEnginePercentTor > Integer.parseInt(param[1]);
    }
}
